
function Plane(x, y, src, size_w, size_h, speed) {
  this.x = x;
  this.y = y;
  this.src = src;
  this.size_w = size_w;
  this.size_h = size_h;
  this.speed = speed;
  this.eleNode = document.createElement('img');
}

Plane.prototype.init = function () {
  this.eleNode.style.position = 'absolute';
  this.eleNode.style.top = this.y + 'px';
  this.eleNode.style.left = this.x + 'px';
  this.eleNode.src = this.src;
  container.appendChild(this.eleNode);
}
Plane.prototype.move = function () {
  this.eleNode.style.top = this.y + 'px';
  this.eleNode.style.left = this.x + 'px';
}

Plane.prototype.destory = function() {
  this.eleNode.remove();
}